package com.waimai1.waimai.exception;

public class NotErrorException extends RuntimeException {
    private Integer code=500;
    private String message="服务器异常";
    public NotErrorException(EnumException enumException){
        super();
        this.code=enumException.getCode();
        this.message=enumException.getMessage();
    }
    public NotErrorException(Integer code,String message){
        super();
        this.code=code;
        this.message=message;
    }
    public Integer getCode() {
        return code;
    }
    public String getMessage() {
        return message;
    }

}
